package com.zm.demo.dubbo.sc.provider;

import com.zm.demo.dubbo.sc.api.UserControllerService;
import org.apache.dubbo.config.annotation.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zoum
 * @create 2019/4/28 15:54
 */
@RestController
@Service
public class UserController implements UserControllerService {

    private final static Logger LOGGER = LoggerFactory.getLogger(UserController.class);

    @GetMapping("/getUserInfo")
    @Override
    public String getUserInfo(String age, String name) {
        LOGGER.info("name is " + name + ", age is " + age);
        return "name is " + name + ", age is " + age;
    }
}
